package com.kaige.asktaoplugin60.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum FunctionHeaderEnum {
    LOGIN_PANEL("43 55", "登录线路面板"),
    LOGIN_LINE("33 57", "登录"),
    CHOSEN_LINE("F0 DF", "选线面板"),
    CHANGE_LINE("20 D5", "换线");

    private final String functionHeader;
    private final String description;

    public static FunctionHeaderEnum getByFunctionHeader(String functionHeader) {
        for (FunctionHeaderEnum value : FunctionHeaderEnum.values()) {
            if (value.functionHeader.equals(functionHeader)) {
                return value;
            }
        }
        return null;
    }
}